package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.StrategyLike;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StrategyLikeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyLike record);

    StrategyLike selectByPrimaryKey(Long id);

    List<StrategyLike> selectAll();

    int updateByPrimaryKey(StrategyLike record);

    List<StrategyLike> selectForList(QueryObject qo);

    StrategyLike selectLike(@Param("strategyId") Long strategyId, @Param("userId") Long userId);//查有没有点赞

    void deleteLike(@Param("strategyId") Long strategyId, @Param("userId") Long userId);
}